package com.water_work_form.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * <p>
 * 基础表——生产药剂
 * </p>
 *
 * @author xuke
 * @since 2023-08-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "basic_medical")
@ApiModel(value="BasicMedical对象", description="基础表——生产药剂")
public class BasicMedical implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @ApiModelProperty(value = "项目")
    @Column(unique = true)
    private String name;

    @ApiModelProperty(value = "标准溶液名称")
    private String standardName;

    @ApiModelProperty(value = "浓度")
    private Float concentration;

    @ApiModelProperty(value = "证书编号")
    private String certificateNo;

    @ApiModelProperty(value = "有效期")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date effectiveDate;

    @ApiModelProperty(value = "开盖日期")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date openDate;


}
